const Koa=require('koa2');
const app=new Koa();

app.use(async (ctx,next)=>{
    ctx.status=200;
    console.log('Status');
    await next();
    console.log('Status End');
});

app.use(async ctx=>{
    console.log('Body');
    ctx.body='OK';
    console.log('Body End');
});


app.listen(3002,()=>{
    console.log('\n\nPort 3002',new Date().toLocaleTimeString());
});